const Home = () => import('@/pages/Home/Home')
const Mall = () => import('@/pages/Mall/Mall')
const List = () => import('@/pages/List/List')
const Cart = () => import('@/pages/Cart/Cart')
const Man = () => import('@/pages/Man/Man')
const Hotlist = () => import('@/pages/Home/hotlist/hotlist')
const Detail = () => import('@/pages/Detail/Detail')
const Squery = () => import('@/pages/Squery/squery')
const Payment = () => import('@/pages/Manchildren/Payment')
const Payments = () => import('@/pages/Manchildren/Payments')
const Receiving = () => import('@/pages/Manchildren/Receiving')
const Evaluate = () => import('@/pages/Manchildren/Evaluate')
const Aftersale = () => import('@/pages/Manchildren/Aftersale')
const Logistics = () => import('@/pages/Manchildren/Logistics/Logistics')
const Logisticreturn = () => import('@/pages/Manchildren/Logistics/Logisticreturn')
const Allorder = () => import('@/pages/Man/Allorder/Allorder')
const Chooseplace = () => import('@/pages/Man/Chooseplace/Chooseplace')
const Chooseplaces = () => import('@/pages/Man/Chooseplace/Chooseplaces')
const Personal = () => import('@/pages/Man/Chooseplace/Personal')
const Paysuccess = () => import('@/pages/Paysuccess/Paysuccess')
const Payreturn = () => import('@/pages/Paysuccess/Payreturn')
const Orderdetails = () => import('@/pages/Orderdetails/Orderdetails')
const Login = () => import('@/pages/Login/Login')
const Logindetail = () => import('@/pages/Login/Logindetail')
const Shoplogin = () => import('@/pages/Login/Shoplogin')
const Address = () => import('@/pages/Address/Address')
const Chooseaddress = () => import('@/pages/Address/Chooseaddress')
const Modifyplace = () => import('@/pages/Man/Chooseplace/Modifyplace')
const Modifyplaces = () => import('@/pages/Man/Chooseplace/Modifyplaces')
const Shop = () => import('@/pages/Man/Shop/Shop')
const Writeoff = () => import('@/pages/Man/Shop/Writeoff')
const Qrcode = () => import('@/pages/Qrcode/Qrcode')
const Blank = () => import('@/pages/Detail/Blank')

const routes = [{
    path: '/',
    redirect: 'Home'
  }, {
    path: '/home',
    name: 'Home',
    titile: '首页',
    component: Home,
    isNav: true
  }, {
    path: '/mall',
    name: 'Mall',
    titile: '全部商品',
    component: Mall,
    isNav: true
  }, {
    path: '/list',
    name: 'List',
    titile: '商品分类',
    component: List,
    isNav: true
  }, {
    path: '/cart',
    name: 'Cart',
    titile: '购物车',
    component: Cart,
    isNav: true,
    meta: {
      navShow: false,
      token: true
    }
  }, {
    path: '/man',
    name: 'Man',
    titile: '个人中心',
    component: Man,
    isNav: true,
  }, {
    path: '/hotlist',
    name: 'Hotlist',
    titile: '热门列表',
    component: Hotlist
  }, {
    path: '/detail',
    name: 'Detail',
    titile: '详情列表',
    component: Detail,
    meta: {
      navShow: false,
      // token: true
    }
  }, {
    path: '/squery',
    name: 'Squery',
    titile: '搜索列表',
    component: Squery,
    meta: {
      navShow: false,
    }
  }, {
    path: '/payment',
    name: 'Payment',
    title: '待付款',
    component: Payment,

    isNavs: true,
    meta: {
      navShow: false,
      token: true,
    }
  }, {
    path: '/receiving',
    name: 'Receiving',
    title: '已付款',
    component: Receiving,

    isNavs: true,
    meta: {
      navShow: false,
      token: true
    }
  }, {
    path: '/evaluate',
    name: 'Evaluate',
    title: '已取消',
    component: Evaluate,

    isNavs: true,
    meta: {
      navShow: false,
      token: true
    }
  }, {
    path: '/aftersale',
    name: 'Aftersale',
    title: '全部订单',
    component: Aftersale,

    isNavs: true,
    meta: {
      navShow: false,
      token: true
    }
  }, {
    path: '/allorder',
    name: 'Allorder',
    titile: '全部订单',
    component: Allorder,
    meta: {
      navShow: false,
      token: true

    }
  }, {
    path: '/logistics',
    name: 'Logistics',
    titile: '物流信息',
    component: Logistics,
    meta: {
      navShow: false,
      token: true

    }
  }, {
    path: '/chooseplace',
    name: 'Chooseplace',
    title: '地址选择',
    component: Chooseplace,
    meta: {
      navShow: false,
      token: true
    }
  }, {
    path: '/personal',
    name: 'Personal',
    title: '个人信息',
    component: Personal,
    meta: {
      navShow: false,
      token: true
    }
  }, {
    path: '/paysuccess',
    name: 'Paysuccess',
    title: '付款成功',
    component: Paysuccess,
    meta: {
      navShow: false,
      token: true
    }
  }, {
    path: '/orderdetails',
    name: 'Orderdetails',
    title: '订单详细',
    component: Orderdetails,
    meta: {
      navShow: false,
      token: true
    }
  }, {
    path: '/login',
    name: 'Login',
    title: '登陆',
    component: Login,
    meta: {
      navShow: false,
    }
  }, {
    path: '/logindetail',
    name: 'Logindetail',
    title: '登陆',
    component: Logindetail,
    meta: {
      navShow: false,
    }
  }, {
    path: '/shoplogin',
    name: 'Shoplogin',
    title: '商家登录',
    component: Shoplogin,
    meta: {
      navShow: false,
      
    }
  },
  {
    path: '/address',
    name: 'Address',
    title: '地址',
    component: Address,
    meta: {
      navShow: false,
      token: true
    }
  },
  {
    path: '/modifyplace',
    name: 'Modifyplace',
    title: '修改地址',
    component: Modifyplace,
    meta: {
      navShow: false,
      token: true
    }
  },
  {
    path: '/modifyplaces',
    name: 'Modifyplaces',
    title: '修改地址',
    component: Modifyplaces,
    meta: {
      navShow: false,
      token: true
    }
  },
  {
    path: '/shop',
    name: 'Shop',
    title: '商家页面',
    component: Shop,
    meta: {
      navShow: false,
      token: true
    }
  },
  {
    path: '/writeoff',
    name: 'Writeoff',
    title: '核销记录',
    component: Writeoff,
    meta: {
      navShow: false,
      token: true
    }
  },
  {
    path: '/qrcode',
    name: 'Qrcode',
    title: '提取码',
    component: Qrcode,
    meta: {
      navShow: false,
      token: true
    }
  },
  {
    path: '/chooseaddress',
    name: 'Chooseaddress',
    title: '提取码',
    component: Chooseaddress,
    meta: {
      navShow: false,
      token: true
    }
  },
  {
    path: '/chooseplaces',
    name: 'Chooseplaces',
    title: '付款新增地址',
    component: Chooseplaces,
    meta: {
      navShow: false,
      token: true
    }
  },
  {
    path: '/payreturn',
    name: 'Payreturn',
    title: '退款成功',
    component: Payreturn,
    meta: {
      navShow: false,
      token: true
    }
  },
  {
    path: '/logisticreturn',
    name: 'Logisticreturn',
    title: '物流信息',
    component: Logisticreturn,
    meta: {
      navShow: false,
      token: true
    }
  },
  {
    path: '/payments',
    name: 'Payments',
    title: '付款页面',
    component: Payments,
    meta: {
      navShow: false,
      token: true
    }
  }

]

export default routes
